package com.ryan.route.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 路线详情
 * </p>
 *
 * @author ryan
 * @since 2020-07-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("travel_route_description")
@ApiModel(value="RouteDescription对象", description="路线详情")
public class RouteDescription implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "路线ID")
    @TableId(value = "id", type = IdType.INPUT)//id与路线一一对应，所以需要手动设置id
    private String id;

    @ApiModelProperty(value = "路线详情")
    private String description;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;


}
